package com.yunsc.store.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yunsc.common.serializer.TimestampToDateSerializer;
import lombok.Data;

import java.io.Serializable;

/**
 * @version: 1.0
 * @Author: adan
 * @description: 配送模板实体类
 * @date: 2024-04-19 23:52
 */
@Data
@TableName("yunsc_delivery")
public class YunscDeliveryEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 模板ID
     */
    @TableId
    private Integer deliveryId;
    /**
     * 模板名称
     */
    private String name;
    /**
     * 计费方式(10按件数 20按重量)
     */
    private Integer method;
    /**
     * 排序方式(数字越小越靠前)
     */
    private Integer sort;
    /**
     * 是否删除
     */
    private Integer isDelete;
    /**
     * 小程序d
     */
    private Integer storeId;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonSerialize(using = TimestampToDateSerializer.class)
    private Integer createTime;
    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonSerialize(using = TimestampToDateSerializer.class)
    private Integer updateTime;

}

